Fixed open FD leak