onPeerDisconnected implementation and annotations added.