Adding shutdown pause for shutting down a netty server