Adding code for wrapping continuations with try-catches to print exceptions