Hi pozdnyakov, I think the only case that this PR doesn't support is 'no pending callback', do you agree?
I can change to only implement  your suggestion 1) at present. But I think in future we still need to rework to add the IPC stuff back .