closes all active windows when new file is loaded