Callback or emit an error when something is bad