ABC has canceled Castle.

After weeks of debate over whether or not the show would be returning for a ninth season without Stana Katic, ABC confirmed to the current season will be the show's last.

Castle finale promo: will Beckett die?!

Executive producers had said earlier that, if the series concluded this year, a scene had been shot that would allow the series to end with closure. In addition, all current plot lines were expected to wrap up either way - with the next season being a quasi-reboot of the show.

Castlewasn't the only show that got the axe at ABC Thursday. The network also canceled Nashville, The Muppets, The Family, Marvel's Agent Carter and Galavant.

Castle will air its season finale Monday at 10/9c on ABC.