Simplified the activity termination script due to the inability to mail on the go with cron.