We're sorry to hear that you were in the middle of a trade when your session ended unexpectedly.
Thankfully, the trade would not have completed as it manually requires you and the other user to accept the trade, which couldn't have happened if you crashed.
This may disappoint you if you were expecting to complete the trade for an item you wanted, but on the other hand, a relief that you still have your own items.
If you crash frequently during trades, this may be a bug and you should report it to us here.