Fixes crash when shutting down sites with plugins