changed Metaspace.close() to closeAll()