Added logout after transfer completes. Haven't tested it. Still working on how to import the options.txt file.