fix misspelled attribute name

it's queries, not queue. As result on_error callbacks for queries were
not invoked in case of fatal errors