Use the _errorCallback given in Stomp.Client#connect on final connection failure