DOS environment corrupted after OpenOCD use

I soon as I am using OpenOCD, thru a “make program” in a DOS console or in Eclipse, DOS is getting corrupted : for example, all keys are locked when using EDIT.

Is it possible to check that all resources are correctly free after use ?

Eric