'Add a callback notification when the connection can not be opened.
The callback method should accept the connection object that could not
connect, and an optional error message.
:param method callback_method: Callback to call when can\'t connect
:param bool remove_default: Remove default exception raising callback'

def add_on_open_error_callback(self, callback_method, remove_default=True):

    if remove_default:
        self.callbacks.remove(0, self.ON_CONNECTION_ERROR, self._on_connection_error)
    self.callbacks.add(0, self.ON_CONNECTION_ERROR, callback_method, False)
