support a running time limit on spawned commands

(didnt have time to check yet. sorry for google-able comment!)