Hart Hanson to write series' finale next year