Create custom field that will close the task?

Create custom field that will close the task?

      Hi,  Perhaps there is a way to do this.  

I want to create a couple of custom fields for my task status list such as "Cancelled" and "Abandoned".  When doing it, then it should "close" the task and no longer show up as active/open. Is there a way to do this?