Add --safeclean option.

With this option enabled, cloudinitd will not terminate the DB file on
failed terminate.