There is an option that makes them have to survive until the end. that way if they troll, they lose..
However, I usually go by this rule:
If my target is town, I use my immunity and vote to help town win.
If my target is mafia, I will help mafia win.
If it's 1 neutral, me, and 1 other. i'm going for neutral win, since i'm neutral.