make sure the shutdown thread calling to datawriters isn't interrupted

SCATTER-128 may lead or relate to GDA-5479 MXGDA-985