Close cmd and data1 when Enable is done.