add logging for provider loading, catch uncaught exception