@jonathanslenders, thank you for the great tool!
Few days ago after I upgrade to ptpython version 3.0.18 I found out I can no longer exit from repl using either exit() or raise SystemExit.
I think the changes caused the issue is in commit 321d9e1. There on line 101 should be raise instead on return. Changing this line to raise fixes #463 too.
I can try to work on the fix if you don't mind.