Added a resource close method on the models.
Can't add to list methods as yet since the json seems to rely on the entity manager being there.
Need to refactor to user entity queries class to not make a new entity manager.