Improved TCP connection method to be more resilient to connection errors in initial setup
Removed debug-only print statements from TCP connect class