Add thread for recv and process
Add Ctrl+C control in main loop