Gate a bunch of state changes for aborted files

Abortions are final. For some reason, UWU objects disagree, and think
they should be called errors, or even just transports. Fixed now (at
least, for most scenarios I could think of and test).

Bug: T76697
Change-Id: I3778736ac2b70afcd783c97209513f93127f5ec1
Merge "Gate a bunch of state changes for aborted files"