Added removal of defunct processes from map and vector