Raising custom exception in archive and exiting from CLI