Should probably be replaced by:
$this->smtp->Quit();
$this->smtp->Close();