TMP fix "invoke the read callbacks before closing."