Move handling of exceptions to runtime module
Move pretty printing of exceptions to runtime mod.