Add our function to kill-buffer-hook locally.