Replace all exit() with SWIG_exit()

For consistent cleanup on error
11 files changed