Troubleshoot Python interpreter crashes after initializing Maya standalone

If the Python interpreter crashes after you call maya.standalone.initialize(), you can avoid this problem by calling maya.standalone.uninitialize() at the end of your script to cleanly terminate the standalone application's connection to Maya. See Standalone Scripts.