Bumgarner closes out Giants' third title in five years