according to JPA spec
The EntityManager.close method closes an entity manager to release its persistence context and
other resources. After calling close, the application must not invoke any further methods on the
EntityManager instance except for getTransaction and isOpen, or the IllegalState-
Exception will be thrown.
hibernate now only throws ISE when the TX is JTA and EM is closed