comment out some cleanup which can segfault at app termination: investigate later
some tweaks for pyggles to help with clean termination
merge