Avoid non-zero exit status when restarting non-existed process groups.

Handle the BAD_NAME exception the server raised and process with the same strategy used for single process names.