Cleaning up the EntityManager