public function quit($closeOnError = true) {
		try {
			$this->sendMessage('QUIT', 221, 'SMTP server rejected quit command');
		} catch (SmtpConnectionException $ex) {
			if (!$closeOnError) throw $ex;
		}
		$this->close();
	}