In my opinion, the best way is prevention. I always backup the whole system before trying any new software. If the software isn't good enough and can't be completely removed, I just restore the system.