code: private boolean checkCompletion(AFTPClient client) throws ApplicationException {
  	boolean isPositiveCompletion = client.isPositiveCompletion();
  	if (isPositiveCompletion) return false;
  	if (count++ < retrycount) return true;
  	if (stoponerror) {
  	    throw new lucee.runtime.exp.FTPException(action, client);
  	}
  
  	return false;
      }
docs: check completion status of the client
  
  @param client
  @return FTPCLient
  @throws ApplicationException