Disconnect and reconnect if we get a temporary error from the server.