qio: Change qwait to throw errors