handle unexpected close regarding monitoring tools