Cleans up the loader