[BUG][FIX] File out empty change set results in a dangling file h andle