This is where air locks come in, in other words, have 2 sets of doors, open one walk in, close it, then you can open it up to space. Otherwise yeah everything gets vented and now you have 0 air. About the rail doors, yeah that could be troublesome. Perhaps when you place the air generating block...