Stop before starting when restarting