Added check if we were cancelled