public function close() {
		if (isset($this->handle) && $this->handle != null) {
			$this->handle->close();
			$this->handle = false;
			$this->onConnectionClose(new Event(['sender' => $this]));
		}
	}
public function close() {
		if (isset($this->handle) && $this->handle != null) {
			$this->handle->close();
			$this->handle = false;
			$this->onConnectionClose(new Event(['sender' => $this]));
		}
	}
public function close ( ) { if ( isset ( $ this -> handle ) && $ this -> handle != null ) { $ this -> handle -> close ( ) ; $ this -> handle = false ; $ this -> onConnectionClose ( new Event ( [ 'sender' => $ this ] ) ) ; } }
Close FTP connection.

@throws FtpException Raised when error occured when closing FTP connection.
Close FTP connection .