We frequently stop SQL Server Agent whenever Exchange server is rebooted because of this
Last night the Exchange server was rebooted and the Agent was stopped when one of the Sync Job was running. This job usually takes 2 hours to run and is scheduled to run at night when there are no users. The Network Admin. failed to notice that this job was running. The job log shows this error 'The job was stopped prior to completion by Shutdown Sequence 0'
On a normal run, when this job fails email is sent to all Admins. Since this job was stopped manually (by the Agent) no email was sent.
It would be nice if the Agent pops a message that Jobs are running before a Stop request is sent.
Is there any preventive steps that can be taken ?
That is precisely why I switched from using MAPI based SQL Agent Mail to xp_smtp_sendmail from www.sqldev.net
Once setup, you can bounce the Exchange server as much as you like and email from SQL Server still works.
As for preventive steps. You could try putting together a VBScript of some description to check for running jobs and then stop the Agent.