There is a mechanism for auto completing journeys when events cause such crowds. TfL are quite liberal at completing journeys that might have been affected and refunds are sent to the card, or bank account if contactless, within a day.but my question is general because I have been at London terminals when the barriers appear to have panicked open due to crowds, causing problems for people attempting to tap out while being pushed.