upon disconnect clear client near-cache
beautify the code
Merge pull request #1168 from gurbuzali/near-cache-invalidation

upon disconnect clear client near-cache