[終「お」]わる => To finish A; A ends N4
Secondary Verb
[最中「さいちゅう」] => In the middle of A N3
Time, Situation
たが[最後「さいご」] => Once A occurs, B happens N1
Information, Report