Ensure jobs are reset before the tunnel is closed.