proper shutdown on netty server error