Cancel promise chains if browser fails