added email notifications for hanging jobs