Return after getting error so that error is propagate to UI