Mission can only be completed in star system. It's just another way to get money, time crystal. Once you reach higher level in asteroid belt (the freeplay mode) the enemy health can ramp up faster than you can upgrade. So you might want to explore other places to get more resource instead.
At least that's the plan I think. I didn't spend much time balancing the game, especially the late game so I'm not sure.