Merge "Use unique_ptr and unique_fd to manager FDs."