Cleanup of branch checkout