- Added a lot more debug messages to monitor socket connection status