Moved the setting of OriginalFileName to the top before errors could happen
Check the error returned by Load.