quit FTP session before leaving thread