write bookmark on stop