Fixed another file descriptor leak.