Check if the loader was successfully created before closing