Called when a scheduled job executes
Called when a user clicks on Stop for a manually started job, or when ASP.NET shuts down.