Exit if something goes wrong with commit or tag.