Return {error, not_connected} when not connected