Don't call System.exit(1) in $print_stack_trace/1

If printing an InterruptedException stack trace to System.err,
instead throw a specialized RuntimeException that can be caught at
a higher level stack frame and handled by the application.
4 files changed