Restore flags interrupts on the error path.