connect method tweaked

connect method tweaked so there is a timeout now( replaced connect with
async beginconnect )