kill window when deleting a temporally displayed buffer, fixed