ask to save on close request if doc is dirty.