Run connect() in constructor