Close Git Repository after performing operation