Pass context parameter to old error handler