Bug 984243 - Increase the timeout value and force terminate when displaying the menu

https://bugzilla.mozilla.org/show_bug.cgi?id=984243