Monitors the application and send an email alert if the application crashes.