finishWithError