shutDownGracefully

Initiates a graceful shutdown of the Netty web server. Handling of new requests is prevented and the given callback is invoked at the end of the attempt. The attempt can be explicitly ended by invoking stop.

Once shutdown has been initiated Netty will reject any new connections. Requests + on existing idle connections will also be rejected.