Reset prepared statement between query lists on shutdown