Here's what to do to get your affairs in order so you don't leave survivors with a legal mess.