Delete provider registry actively
Fixes a crash on exit