tested subprocess threading with sleep script
refined capability to kill subprocess if it exceeds max time limit