Cleaned up exit whines from threads. Only works with ESC and closing the window, not ctrl+c