tools/stop: Include only proper process IDs in the process ID list.