[tcp] Attempt to catch all possible error cases with debug messages