Better DeleteTrailingWhitespace, buffer-kill-close-window function