netty transport: wait for shutdown to complete.