Ensure the book info dialog is deleted when closed