Fix significant leak of File Transfer sockets/threads