RAIIed up EntityManager a bit more. Starting to beef up networking.