Cleanup settings and make statsd optional.