only call releaseExternalResources when not using shared pools