Feature/ss cmd timeout

* added timeout  for external command execution


@jtsoi @vs-ab please take a look 
Tip: `if cmd:` should be enough here.