Fix compile error.
[client] Fix a file descriptor leak.