Don't allow scripts to close windows.