Fix dired close buffer that a currently displayed in any window.