make sure clone and fetch close the remote repo