Properly raise exceptions (so that traceback is preserved). Without this...

... debugging is quite impossible. Fixes #2067.