close all windows when quiting