Cleaned up some window closing code, fixed GDK thread lock problem
Cleaned up some window closing code, fixed GDK thread lock problem

wmvanvliet/Chimara,wmvanvliet/Chimara,wmvanvliet/Chimara,wmvanvliet/Chimara,wmvanvliet/Chimara