Fixed #4: updated cq-running while loop to use exit status