properly connect signals and slots to shut down script properly, fix null termination in script file load