When killing old PIDs because of locks, check first if PID exists...

...and has the same process name as the currently running process.