Send mail to admin whenever an error occurs