Avoid disconnection after authentication fail