Bug 951628 - When Firefox gets closed via shutdownApplication() we do not wait until runner process has been quit. r=dhunt

(cherry picked from commit 327c7a42d3f18750f4ea1ce0de9a0788df2e8bc3)