Fix restart task for supervisor