Stopped popups from remaining open for all URLs.

Stopped popups from remaining open for all URLs.