Set the flag from the inner methods, to avoid bypassing the assignment by mistake (on error for example).