This example demonstrates how to save important data before an imp shuts down.