added a return value for exception in resource manager