Fix segfaults when exiting glow programs
Merge branch 'master' of github.com:hpicgs/glow