Fixes issue #823

Rethrow errors happening inside the Amber stack.