close the fd