Close the file descriptor, setting its value to -1.
Does nothing if the file descriptor is already closed