Throw error on not connected