A simple IoC container with exception handling.