public function write_end() { if (!$this->is_initialized) { throw new extractor_not_initialized_exception(); } $this->flush("COMMIT\nGO\n"); parent::write_end(); }