Print Debugging and Daemon Threads

Added flush to print statement at beginning to debug server conn.
Added daemon thread, so that we can ctrl + c the main process.