Adding a tab watcher

This watches the window listing and closes windows if there are ever
more than one. This handles situations where visitors escape to pages
with links that popup new windows.