Exctract :restart task into a separate one and use :upgrade command to remove old pid and restart properly