Added flush() to kryo output in ConnectionService