title: Close console when closing tkinter window
body: <p>If have a tkinter gui for managing pypresence commands.
  <a href="https://github.com/kaaaxcreators/advanced-discord-rpc/blob/master/discordrpc-gui.py" rel="nofollow noreferrer">Github</a></p>
  <h2>Problem</h2>
  <p>When I press the close button of the window the window closes, but the console stays open.<br />
  I tried other stuff, with py2exe but then sometimes the task stays, and you have do kill it manually.
  But not to forget, i want that the console is there, but it should exit when i press exit in the tkinter window</p>