Handle GeneratorExit correctly

fix #118