Fix a file descriptor leak.
Merge branch 'master' of github.com:erictzeng/reinforcement-lfd