hiding core dump error logs
moved window destruction
tried to fix race condition. issue #4 blocked on core issue