fixed a leak when a process is already dead - refs #588