glue: initial proper error handler support