Inside the $500,000 lawsuit that could’ve contributed to the end of the popular show