close() now resets the connection, in case the caller wants to retry connecting.