reraise exceptions and preserve stack trace