So what the fuck is with After the Fall and losing your guns? I've lost guns because I completed a stage, lost guns because of a failed mission, and lost a gun just from quitting a stage

What the hell is the consistency supposed to be? Is it supposed to be like this? Is it a bug? Really ruining the experience when I lost two maxed out guns a very helpful player gave me for reasons I cannot explain.