Do not close the connection on error when fd is stdin