の[末「すえ」]/た[末「すえ」] => conclusion N2
Reason, Result, Response
途端に... => as soon as; just as ~ N2
Time
末 => finally; after; following; at the end/ conclusion of ~ N2