Add finally statement. Add git reset command on rollback