I just accidentaly removed a dataset from disk (from my test instance, it's OK). After that I've tried to query, and it hanged indefinitely instead of crashing. Investigate if that was just UB weirdness or weird behaviour in the code. Ideally also change the code so that we panic instead of hanging.