Close all files before closing the current project