main class kills all threads from core if they don't stop after shutdown