Added failsafes to TCPResponses.cs