handle remote disconnections correctly