Catch exception during startup