Make socket connecting async.