issue #13: Write a \"resume log\" file just before exiting CANCEL or SHUTDOWN command