public function onError(ConnectionInterface $conn, \Exception $exception) { $message = $exception->getMessage(); $conn->close(); $this->console->error(sprintf('Error: %s', $message)); }