Fix logic error left in dx close after adding multi-arg support