main ... Calling... foo, returning Cleaning up. The number is 3 main, after foo. Back in main, result is 7 main ... Calling... bar, throwing... Cleaning up. The number is 11 catching! Back in main, result is 17