Resending pull request. The last one was on the develop branch, and actually contained two "features". This brings it back to just the one issue I had.
Added a test to see if the branch exists before trying to delete it
Checkout out a branch after release is finished by default
Removed change so that this was only one branch