Note that this might require changes in 3rd party plugins as unloading happens very late. See e.g. 485db2e8 and fca70af3.