From pupils' detachment to disengagement and then to failure