Now query can throw exceptions if any error happens