Cleanup the branch manager