Initial experiment with using exceptions to handle stack overflows