Fix issue when launchbutton isn't made before cleanup