Kill a process after a specified number of seconds.