possibility to send email on error