Made open_direct_file actually be capable of returning an error result, pushing the crash out to the serializer.