I suggest enhancing values populated in 3 events relevant for client (dis)connection:
For these events, I suggest adding values:
That is useful for various reasons:
1) To have better information who just disconnected or failed to connect (i.e. better monitoring allowing to easily identify the process that is e.g. failing to connect repeatedly)
2) To allow client processes (listening for the events) to easily know the disconnect event is relevant to itself by comparing its PID with remotePid.
I am attaching a patch for it.