Create callback error handling