def ftp_close(self, connId='<STR_LIT:default>'):
thisConn = self.__getConnection(connId)<EOL>try:<EOL><INDENT>thisConn.quit()<EOL>self.__removeConnection(connId)<EOL><DEDENT>except Exception as e:<EOL><INDENT>try:<EOL><INDENT>thisConn.close()<EOL>self.__removeConnection(connId)<EOL><DEDENT>except ftplib.all_errors as x:<EOL><INDENT>raise FtpLibraryError(str(x))<EOL><DEDENT><DEDENT>
Closes FTP connection. Returns None.
Parameters:
- connId(optional) - connection identifier. By default equals 'default'