ensure all popup windows close on exit