script to help clear and close windows