adding cleanup code for clients that close without unsub