/** * {@inheritdoc} */ public function __destruct() { if ($this->connection instanceof ConnectionInterface && $this->connection->isBound()) { $this->connection->close(); } }