This can be replaced with `cf.addListener(ChannelFutureListener.CLOSE)`, which does exactly the same as what you've got above.