improved cqadm error handling