Clear query buffer on close to fully support znc's new query buffers.