Improved error handling and logging, Component now has access to DI container