Fixed: unable to remove `resourceName` on shutdown