Fix broken return code from cli on search