Better reconnecting/disconnecting behavior.