Restart cmd & Nickname checking before exec cmds.
More safe restartProgram()