Immobile turrets can spawn on top of planets, making them all but unable to attack or incur damage.

Solution:

When spawning a turret, check if it is on top of a planet or asteroid. If so, do not spawn it.

george moromisato 20 Jan 2017:

Fixed in 1.7 Beta 5. Thanks!