Got fork and run working correctly
Fixed an issue with callback setup. Now callback is run in forked thread