Update TcpServer.cs

Application cannot exit, waiting for Task to trigger.