Disconnect when exception caught