Make sure error handler exist before we call it