prevent a NPE on error disable and try to properly fix the resource creation