Discover how sunset provisions work, their benefits for investors, and potential pitfalls to avoid when dealing with temporary legislative clauses.