Add #relogin command: tests server connection and moves to disconnected state if the test fails.