It seems like a cleaner way to do this would be to refactor ``_handleWindowGoingAway`` to some other module like Global.js and move ``handleFileReload`` to the debug extension.