saltstack/salt — pull request #11683 by UtahDave (2014-04-01 00:45:49+00:00)
Title: Close file handle before returning

Not closing the file handle here was causing Salt to keep a lock on the
file on Windows minions since the minion thread is long-lived.