closing em is called by DoctrineEntityManager, rollback and close order is modified