#!/usr/bin/env php run()); } catch (Sync\ChannelException $exception) { return; // Parent context died, simply exit. } catch (Throwable $exception) { $result = new Sync\Internal\ExitFailure($exception); } $channel->send($result); // Do not yield sending result on channel, process does not care if result arrives. });