fixed removal of entries while iterating in ProcessManager