Return an error from the CaptureSamples method instead of setting it