Fix a memleak in UtilRetro.cpp. Also add handling for the case if a file could not be opened.