Added ScopeGuard.
Work on password support of archive.