-----------------------------------
Close window when done