added timeout for shell script tasks and added validation