Cleanup partial message on reconnect

If a connection error occurs when part after a partial message is
received, the partial message needs to be cleaned up to prevent a
'protocol error' from occuring.

Signed-off-by: Michael Fraenkel <fraenkel@us.ibm.com>