Allow usage of TCPClient with 'with' statement.