Fix the removal of processes from the pool