function kill() { if ($this->connection) { $this->connection->manualFlowControlEnable(false); } $this->running = false; }