ide: unify exit paths in task_pio_intr()