I used
http://freewareppc.com/utilities/taskmanager.shtml in the past but in your case I think a script would be a better choice because you know which process you want to kill specifically. Loading up an extra task manager can sometimes add to the lag.