proper shutdown, maybe hashmap is not necessary due to thradpool