socket connection goes into a reconnection loop if it fails and retries last com when recovered