Remove entity manager