fix: session.close() for insert, update, delete functions