AsyncWriter: introduce size limit on Write Queue, fix memory leak. See #275