Bug 964516 - Improve mozdevice rebooting logic;r=bc