ref #7558 clearing the hibernate session after exceptions and closing it after any use to avoid dirty sessions dangling around
ref #7558 clearing the hibernate session after exceptions and closing it after any use to avoid dirty sessions dangling around