Fixing mail_exception() with context vars.