standalone: Expose specific exceptions
Thanks to more specific exceptions the caller is able to understand what exactly happened during processing, especially useful in case of the caller uses testcase, and can sneak into real problems during setUpClass.