if not threaded, just raise exception as is
Merge pull request #218 from carlhoerberg/non_threaded_bug_fix

If not threaded, just raise exceptions as is