[TASK] Gracefully handle errors in nodeindex:cleanup

If the alias is missing or a different error occurs, the command will
now handle this instead of running into an uncaught exception.