Auto cancel stop order when filled

Using the DOM, can I put in a stop loss order and have it auto cancel when filling with a market order to my close position?