fix premature exit of cleanup_pids

os.kill can raise OSError if given a PID which belongs to
another user. This can happen if we found an old PID in the database
for a process which exited, and the PID was recycled by the
operating system