What is the correct action if an unexpected error occurs and recovery attempts fail in an application?

A.
Create a saveabend file for further analysis, alert an operator, and then abort.
B.
Write a message to a persistent error file and continue processing.
C.
Display an error on the user terminal and then gracefully stop to relinquish all resources used.
D.
Write a message to a persistent error file and wait for a monitor process to issue a stop
command.