Ignore files in dev/
Stop loop according to lifecycle events
Optimize gtk loop handling - always block