Original stack traces are not lost

Ensured that the original stack trace is not lost when re-throwing
exceptions caught when constructing real instacnes.