Have toxsave_save return an int instead of exiting on error