NH-3579 - Fix leaking session in DefaultQueryProvider