Fix calling Exit() from within a Python function action, so that it gets