public function stop() { $this->peersInbound->close(); $this->peersOutbound->close(); $this->loop->stop(); $this->db->stop(); }