test sleep before CloseDecoder