Yeah, if they die while hostile in camp you're screwed. If you have other characters outside of the camp when that happens, I think it's better to let the hostile companion win. If they're hostile to your main, a skeleton resurrection is far enough away that they won't immediately become hostile, and a nights rest(triggered by a character they aren't hostile to) usually fixes it. If they're hostile to someone besides your main you can have them join your party, and they won't be hostile as long as they are grouped. Just don't send them back to camp while the character they are hostile to is in combat range.