Changed relaying/injector threads to catch a app-specific signal signal, removing need for boost::atomic to set halt flag.