more robust exception catch during email