[FEATURE] Implemented better check if ripple-lib is connected to network