Added correct shutdown code for graphite's netty