fixed bug in the error handler that made trigger_error() calls not catchable