The behavior you noticed is standard as explained in the following note.
880061 - (Technical) closing date in the order header
If you still want to have the IDAT2 not to be overwritten with CLSD date, you'd have to implement the modification mentioned the above note.
However, if you want the date for reporting purposes you can always extract it form the table JCDS.