終わる => to finish; to end N4
的 => about (change noun into na-adjective or adverb) N3
[終「お」]わる => To finish A; A ends N4
Secondary Verb
最中に => while; during; in the middle of ~ N3
〜がさいご(が最後) => if you do... negative result N1
Decisive (resolute decision)
[最中「さいちゅう」] => In the middle of A N3
Time, Situation
たが[最後「さいご」] => Once A occurs, B happens N1
Information, Report
~はめになる(~羽目になる)     => to get stuck with (some job); to end up with (something unpleasant) N1