Fixing stop and restart when diy is already stopped