Fixes typo in retry_count
Refresh socket if closed
Version bump