git: make sure to close the network stream In case of a bad url or other error during the connection setup, we close the stream via free.