A neural mechanism for terminating decisions