(This being the case, you are right you're able to flee. But for next time, i'm unsure if it should be possible to approach something, interact with it and flee the same turn. It doesn't have to be a downed ally, but for example a computer console guarded by soldiers or something similar. It's actually something that should be house-ruled.)