updated how exceptions are handled in the resource manager