title: 'Late' handling of unhandled exceptions c#
body: <p>I have used MEF in my project to provide extensibility for plugins. This works great, but I have since realised the need to isolate the plugin assemblies from the main app, so at the very least, the main app doesn't crash if a plugin does.</p>
  
  <p>Unfortunately, this seems to be more complex than anticipated - requiring a combination of MAF and MEF to offer the best solution.</p>
  
  <p>But, I am low on resources and time, so for the time being at least, a satisfactory work-around would suffice.</p>
  
  <p>I am already using the <code>AppDomain.CurrentDomain.UnhandledException</code> event for detailed logging purposes; I noticed with this I can also detect which <code>AppDomain</code> caused the exception. Is there a way I can actually handle these unhandled exceptions at this point?This way I could conditionally check if the exceptions occurred in external assemblies, and if so, ignore them so the main app continues unaffected.</p>
  
  <p>OFC, any alternative approaches suggested will be appreciated too.</p>