close tab after closing the last file win