Complex sentence: The show was unsuccessful and was cancelled before any story arcs were resolved, but "The X-Files" episode "Jump the Shark" was written to give closure to the series.
Split into simpler sentences: The show was unsuccessful and was cancelled before any story arcs were resolved. The episode "Jump the Shark" was created to give closure to the series.