GLUT and GlutMainLoop()

Im using GLUT within a C++ program and wish to return to the program after closing the OpenGL window. I understand it is imposible to leave GlutMainLoop(), the program is to be used on both Macs and Windows PCs any help on setting a new rendering context would be helpfull. Cheers Tom.