You should sub a player out when you see a player not going full-speed or playing selfish basketball.
Everyone on the bench stands for the man coming out of the game.
What to do with a mistake: recognize it, admit it, learn from it, forget it.