send email on program crash