netty server cleanup and configurability