I\'m using a list to keep track of all the processes being spawned in a system and want to implement a cleanup mechanism to remove the ones that are stopped. Here is a basic