fixes #2 (force quit on dispose) and not showing bug