Have kill-this-buffer don't do anything when frame is not alive or visible (Bug#8184).