Bug 865690 - Ensure that JSBridge correctly handles application shutdown. r=ctalbert