If an error occurs in your software how do you guys handle it?

These are my specific queries:
-Do you prompt the user of some options like retry and ignore?
-Do you show the error message or show your custom message and log the error message?
-Do you automatically send an email to prompt you of the error? If there is no internet connection then how will you be notified of the error?

The software will be in a remote place which I cannot personally go so I wish to know what will be the standard practice of such scenario.

TIA