Better disconnecting behavior.