# Preventing "Event loop shut down?"

**URL:** <https://forum.inductiveautomation.com/t/preventing-event-loop-shut-down/114013>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [February 17, 2026, 7:41pm UTC](https://forum.inductiveautomation.com/t/preventing-event-loop-shut-down/114013 "2026-02-17T19:41:28Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![Matrix\_Engineering](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matrix_engineering/32/19781_2.png) [@Matrix\_Engineering](https://forum.inductiveautomation.com/u/Matrix_Engineering)\
**Post date:** [February 17, 2026, 10:40pm UTC](https://forum.inductiveautomation.com/t/preventing-event-loop-shut-down/114013/12 "2026-02-17T22:40:27Z")

</div>

OK so my files are tiny but try this for starters, your architecture seems a bit more complex than mine….

> [@Specify FTP port?](https://forum.inductiveautomation.com/t/specify-ftp-port/80587):
>
> I have a script to retrieve files via FTP after an event. This was working fine, however we then changed our architecture to move the gateway into the cloud, as a result we had to setup port forwarding on our remote routers. import os import system from ftplib import FTP import os.path localpath = "\\\\C:\\Temp\\redacted\\FTP\\" ftp = FTP('10.redacted') ftp.login('redacted','redacted') ftp.cwd('/data/redacted/') files = [] command = 'LIST' ftp.retrlines(command, files.append) f…

Also I need to reply to my own thread because I got that issue of my last reply sorted.

I’ll be VPN’d into that Gateway tomorrow.

---

_[View the full topic](https://forum.inductiveautomation.com/t/preventing-event-loop-shut-down/114013)._
