Bug: build.finished event is sent before last job.finished

Agent 3.13.2
My buildkite hooks handler receives build.finished and then job.fihisned.
It would be more consistent to get them vice versa.