Bug 1077329 - Delay when closing application. r=gsvelto