I hesitated between two options: allowing the player to pay for fuel on credit to keep the game going, or doing something more realistic : triggering a game-over sequence with a video of the ship drifting in space, followed by a game reset.
Regarding the station's automated sales: I made sure to always keep two units of each—water, fuel, and oxygen—in stock to minimize this type of problem.