Bug 865690 - Ensure that Mozmill does a clean shutdown. r=ctalbert