Description
Before the disconnect method is called, which closes the sockets, an FTP QUIT command should be sent by calling the logout-method.
This is the polite way of ending an FTP session. Some FTP servers don't like if the QUIT command is skipped and eventually disallows further connection attempts after a while.