changes to worker job alerting

fix #150 
You can group these two SendAlert blocks into a helper method, taking a string keyword such as Error/Warning.