io: Move timerfd close into error handling path