There are ways to avoid the so-called “death tax”, but if you get the timing wrong, your returns could suffer.