free the fd_array when we exit