Could be a race of calling the post script callbacks, either the ones for request_route or from one of the event routes, because I notices some of them can trigger also these callbacks execution.
You can push the above patch to narrow does the race time frame for the moment. I will have to analyze a bit more the code and see what else has to be done there.