public function __construct() { register_shutdown_function(array($this, 'destruct')); parent::__construct(); }