title: SFML stuck on main function exit
body: <p>In SFML, when the <code>main</code> function exits, my game stucks without responding to any events. Is there a way to kill the main thread using some WinAPI functions?</p>
  
  <p>I can't give the minimal example code, because my project is big enough, and some minimal examples don't stuck.</p>