Graphite socket and fix threadpool bug