Who told you off, if the boss told you to do it? I'd send them a sweetly firm email saying you did as instructed when overcome by a migraine that presents with stroke symptoms. To provide them with more notice would require a crystal ball, and sadly you weren't supplied with one upon graduation.