[FIX] XQuery, SQL Module: extend close() to prepared statements