well, i know the demon can possess through any kind of status effect and (i believe) can even do so when it's not its turn, so the only way to avoid party members being possessed is to do what you did. the dwarf indeed cannot be repossessed, so it's just a matter of keeping him alive in the fight