Fixed switchInput ignoring validation

SwitchInput should honor the return value of close, otherwise validation occurs but is ignored.