Add the abliity to close the resource manager