send deploy successful email after restart finishes

(made this a couple days ago and forgot to PR)

The diff is a tad confusing, because I'm changing the control flow to not use finally, but in either the exception or normal cases, the commands getting executed are the same; only now if things go normally, service restart and success email were being done in the wrong order, and this fixes it.