Only unload plugins after the DUChain shutdown to prevent infinite loop due to non-loaded factories for types