Don't close file and pipe that were not opened.