Added timeout on failed connection test