Bug 966234 - A shutdown after a restart causes Mozmill to open a new Firefox process before the former one is gone. r=hskupin

(cherry picked from commit 4b595af93353d282debb5725056ce0e363b3062e)