catch errors on creating resources during startup