Close data reader/writer and device on suspend