We usualy show a Message Box with the error message when our products finds a problem. This message box requires the user to click okay or use enter and many clients do not want this box to appear or to have a human interaction.
This can be very easily done if we use a runtime configuration variable called SHUTDOWN_MESSAGE_BOX.
The default value of this variable is 1. If we don't want this message box to appear we just have to set it up at 0 (Zero) and everything will work as wanted.
An remember, this variable is easily set up in the runtime configuration file.