Local and nonlocal boundary quenching in a subdiffusive medium