Fix file descriptor leak

2 jobs for master in 10 minutes and 7 seconds (queued for 3 seconds)