Improvments to the input system.  Closing the input system now correctly quits all threads.