Ripple bot code cleanup. Simple web-socket reopen on unexpected close