Add more debug logging around client socket in NGSession.
More logs to diagnose socket issues.
Close streams on exception.