Add the coalmine error handler