The UPnP module crashes on deactivation, so we make sure to never close it. This restores the hack to solve #1803 accidentally broken in a06bbd8b.