fix bug in RTR for not correctly exiting after timeout