Fix parser going boom if exit event is first