Handle the websocket open function throwing exceptions.