got everything but the kill signal working, and the threading to monitor for it.