added email notification when an error causes the app to crash, we really should move the pass and email to a seperate file