Add a timeout to exec.