Fix interface from crashing due to auto-reload of scripts.