ActiveAE: flush stream properly