added early exit to debug the initialization error