Anyone know a clean way of terminating a previous instance of my program?

I don't want to just detect the previous instance...(easy to do with app.previnstance). I want to kill it.