Defects in semiconductors: some fatal, some vital