In order to remove mysql threads you can issue the command

sparksupport.com]#mysqladmin flush-threads