If it turns out you were a Shrink, then I think it's safe to assume we have an Insane Cop. I'm sure there is at least one insane Mafia member too. So, perhaps, your death is necessary at this point? It is unfortunate, but you will still win with the town, assuming you are telling the truth.