Ensure tunnel stops when jobs are completed.