Installing custom node packs and hitting restart

Hitting restart after installing new node packs will just shut down Comfy ui. Restarting comfy ui will get a hanging grey screen. Shutting down then re-opening it will finally start comfy ui. But this time multiple instances of comfy ui may be still “open” (in the process manager), which leads to CUDA errors and early OOMS → comfy ui desktop (electron)