Added print_seed() method for easier debugging
Catch exceptions while running with -r, print seed again at exit