This advice doesn't kill (real) buffers if they're visible in another window, but would prompt you about unsaved buffers even if it wasn't destined to be killed. Now it only prompts you if the buffer will be killed.