Moved cookies to page#SetCookies, added better error handling for phantom