the error hook reports connection errors, but it doesn't report when your message handler threw an exception