Fixed various breakage after updating dependencies
Fixed Autofac lifetime