Early return on error