A failure because the database goes down is like a failure for any other reason, therefore ..
If a job fails, the steps are:
1)Try restart
2)If restart fails again, and it’s for a cause you are not sure of or a cause that you can’t fix, cleanup (and then you would call support, providing the script and the script log)
3)If cleanup is NOT available, then it’s probably because the job failed inside the switch: call support, providing the script and the script log