Avoid directly using unsafe instance for throwing checked exceptions unsafely, as this may later need to be replaced. Non-javac compiled bytecode can also do this.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>