More intellignet shutdown

Check every second by 5 seconds then kill if need.
Update stop.sh

Check every 0.1s that daemon is closed, kill it after 5s
Update stop.sh

add usleep
Merge pull request #566 from Rav3nPL/patch-3

More intellignet shutdown