Fix framed channel flush implementation
Make session listener work correctly under security manager