/** * Let WURFL only deconnect, when the connection is not from TYPO3 */ public function __destruct() { if (!$this->sharedConnection) { parent::__destruct(); } }