Hotfix for catching mail exceptions