Cisco ASR 1001-X NCM backup failure

Cisco ASR 1001-X NCM backup failure

I'm trying to automate my backups for my environment, however the script for the Cisco ASR routers seems to have an error in the backup script: after it shows the running config it enters exit, which on the ASR series logs out instead of exiting EXEC mode 
                New to ADManager Plus?

                  New to ADSelfService Plus?