Added a timeout to the cli and TCPTransport (closes #10)