Fix deadlock in sendDisconnected