sys.exit in jupyter
I'm running into issues stopping jobs in Jupiter. When I interrupt
dynesty it triggers a call to
sys.exit which kills the kernel.
Maybe we should avoid calling
sys.exit and instead raise a custom error that can be caught and then the exit can be called by downstream users.