old_contents: from sys import exit
  from random import randint
  
  while True:
      try:
          print(randint(1,6))
          input('Press ENTER to roll again or Ctrl-C to close')
      except KeyboardInterrupt:
          print('Have a nice day. Thank you for using SeaWare.')
          exit()
  
new_contents: import time,random
  
  try:
      while True:
          print(random.randint(1,6))
          input('Press ENTER to roll again or Ctrl-C to close')
  except KeyboardInterrupt:
      print('\nHave a nice day. Thank you for choosing SeaWare.')
      time.sleep(3)
  
subject: Update dieRoll2.py