added ability to close orders and update cart processed timestamp