code: private void checkStatus(MtasSolrStatus status) throws IOException {
  		if (!status.finished()) {
  			if (status.error()) {
  				status.setFinished();
  				if (requestHandler != null) {
  					requestHandler.finishStatus(status);
  				}
  				throw new IOException(status.errorMessage());
  			} else if (status.abort()) {
  				status.setFinished();
  				if (requestHandler != null) {
  					requestHandler.finishStatus(status);
  				}
  				throw new IOException(status.abortMessage());
  			}
  		}
  	}
docs: Check status.
  
  @param status
  the status
  @throws IOException
  Signals that an I/O exception has occurred.