Added reconnect function, and changed recv_chunk to capture exceptions and attempt a reconnect.
Added reconnect function, and changed recv_chunk to capture exceptions and attempt a reconnect.


emikulic/hellanzb,pjenvey/hellanzb,emikulic/hellanzb,pjenvey/hellanzb