Fixed mail handler throwing and give a way to see errors