Show the proper way to exit a cmd shell
diff --git a/Doc/library/cmd.rst b/Doc/library/cmd.rst
index fd7f453..943c04a 100644
--- a/Doc/library/cmd.rst
+++ b/Doc/library/cmd.rst
@@ -276,7 +276,7 @@
             print('Thank you for using Turtle')
             self.close()
             bye()
-            sys.exit(0)
+            return True
 
         # ----- record and playback -----
         def do_record(self, arg):