AVRO-1154. Java: Fix NettyTransciever to not hang when the server is stopped. Contributed by Bruno Dumon & Karel Vervaeke.