Making sure Hibernate session is open