Changed the way user input is listened for.  Ensures the main thread
does not wait after the tx_thread has terminated.