Why do you emit an error instead of calling the provided callback function?