endSessionAndFlush actually flushes now