def finish(self):
self.repo.git.checkout(self.current_branch)<EOL>self.repo.close()<EOL>
Clean up any state if processing completed/failed.

For git, will checkout HEAD on the original branch when finishing