Connect() error handling