Fixed #681 - redis-cli --pipe no longer hangs when malformed protocol data is sent.

redis-cli (with the --pipe option) now exits with an error message instead of hanging forever. This fixes #681.