Fix severe bugs in archive command.

Make the output more digestible. Make the shutdown ordered.