- Move the Console.ReadKey to after the connection is closed.