pub fn write_reply(result: Result<Value>) -> Result<()>
Write one response without allowing a closed parent pipe to panic the worker.