title: How to close all active mysql/mariadb connections when your program is killed by SIGKILL?
body: <p>I'm using MariaDB with python. I have a small app with GUI built by PyQt5 and I need it to communicate with a MariaDB. I do use a separate IO thread for establishing connections and query my database. However, since I might have bugs in my program, sometimes the app freezes and I have to kill it from task manager (I'm using Windows but I assume that's same as SIGKILL in Linux). I then checked my remote database and I do find the connections I established are still alive.</p>
  <p>Is there anyway to guarantee that I can close all my connections even when the program is killed by SIGKILL?</p>