Handle cookie
Simulate connection error