add close method for urlLoaders