1
Added reconnection on socket failure.