It depends on what you mean by "failure."
If you want to deal with any unhandled exceptions that might otherwise crash the application, you can attach an event handler to AppDomain.UnhandledException and then handle any errors in the event handler.
, .Net 4.0 AppDomain.FirstChanceException, , catch, .
, (, ), , , , , AppDomain.UnhandledException.