add some little changes. the basic problem is that we should cancel some
already running but no more needed HTTP threads when we update the map,
so that they do not block the new incoming threads