Fixed missing language call, added safety check for cache file opens