Handle multiple "TERMINATE" calls for KclRecordProcessor
KCLRecordProcessor handles multiple shutdown calls gracefully In some occasions KCL library calls shutdown multiple times for the same shards KCLRecordProcessor. We have to make sure it doesn't fail because closed dependencies.