(I'm not sure understand your question)
for example, driver may want to raise exception on close() when there're query still running.