added ClientOutOfMemoryHandler
Merge pull request #1954 from gurbuzali/client-oom-handler/3.2-RC3

added ClientOutOfMemoryHandler