Workaround issue preventing firefox from quiting
if top level window is unregistered.