but because courtesy to the opposite sex had been drummed into his head since childhood , and because the woman had looked truly frantic , he managed to form a polite inquiry about her problem just as his eyes closed and he began sinking into a deep sleep .