gloverlay: properly handle errors while loading file