Plug file descriptor leak.