Learning lessons from ecosystem collapse to help inform the future