added email notifications for when switch.py crashes