Hashmap destroy callback bug