Ensure closing preview window deletes previewed buffer.