onClose($this->getConnection()); if ($ret instanceof CommandInterface) { $comp = new Composite; $comp->enqueue($ret); $rt = new Runtime($this->getConnection()); $rt->setCommand(function(Connection $conn, ApplicationInterface $scope) { $conn->getSocket()->close(); }); $comp->enqueue($rt); return $comp; } $this->getConnection()->getSocket()->close(); } }