Fixing bug that caused the system to hang when http clients dropped the connection + increasing batch sise cursor rows retrieval