I think I found the problem.
My event system needs to be empty after each tick, so it does not trigger error on deleted objects on the map.
Since there is no way to guess what objects would need to be unregistered in the event system following the previous tick. (creeps dead etc...)