fixed order of transferpool shutdown and device closing