Personally, I rule that any such spell held "in hand" is dissipated harmlessly when the caster loses consciousness for any reason.
On an unrelated note, I also rule that spells with a duration of permanent actually have a duration equal to (caster level squared) weeks. Otherwise, we'd...