Notify callback handler when an error occurs