How the Brain Prevents and Terminates Shifts of Attention