Fix possible crash when failing to open a text output file
Fix possible crash when failing to open a text output file

Kingcom/armips,WilliamO7/armips,sp1187/armips,hrydgard/armips,WilliamO7/armips,sp1187/armips,Kingcom/armips,hrydgard/armips,hrydgard/armips,Kingcom/armips,sp1187/armips