Added timeout to deal with connecting to slow and  unreliable irc servers