#17585: Fixed IDLE regression. Now closes when using exit() or quit().
#6696: add documentation for the Profile objects, and improve profile/cProfile docs.  Patch by Tom Pinckney.