Stop the file descriptor leak