[Plugin Installer] Fixes #8244 (crash on closing http request)