Disposing of the container now disposes of singleton objects.