Add common uv_timer_* error handling code.