Do connection on worker thread