When the player moves to a new surface, the drones follow him (e.g. with the Factorissimo2 mod or its forks).
But if before the transition some drone flew far away on the command to collect a resource, or something to build, then after moving the drone to a new surface, it continues to fly to a given point.
I think this is a bug, because it can fly far away to the enemy territory and die there.
It is better that drones after changing the surface reset their commands and stay close to the player.