fixed fixed https://issues.jboss.org/browse/JBPM-3735
fixed fixed https://issues.jboss.org/browse/JBPM-3729
avoid exceptions on closed hibernate session