Switch to timerfd for all timers, improve shutdown of rx thread