[jboss-jira] [JBoss JIRA] (WFLY-2195) add defensive check against EntityManagerFactory/EntityManager already being closed by ill-behaved deployment