Readside processors cleanup

Hello,

Is there a pragmatic way to do a cleanup of resources in case of a read side processor failure/restart?

Thanks