Yes the actor who played Mathew did not want to renew his contract. The writers felt they had no choice but to kill him off. There was no other honorable way, or so they say.
Can't wait for season 4..............too bad we have to wait almost a year!