chainit fork with error handling, setImmediate