chmod files before exit