Fix up FD leak