Weird officiating, late-game defensive lapses prove costly.