Add safety for executing callbacks
Assert that the error returned is always null
Return the error message when connection failure occurs