Updated so that logging MEF errors and warnings is done on a separate thread, to avoid delaying container creation.