Preventing "Event loop shut down?"

Because of the time it takes the file transfer portion of the script is executed using

Apparently a known issue that the jython ftplib is slow though still the right move to do it async.

You may want to do it directly with the java libraries as the OP in this post tried. You can also download WinSCP and shell out to that instead.