Dynamic hashmap update and removal to track active processes