install an X error handler