title: Terminating second thread in micropython on Raspberry Pi Pico
body: <p>I use both cores of RP2040 chip. Main one runs main loop and second handles LCD display.
  I start second one on the thread like</p>
  <pre><code>_thread.start_new_thread(taskLCD, (100,0.5))
  </code></pre>
  <p>where taskLCD updates LCD every half os second.</p>
  <p>Sometimes when I restart program second core is still working and there is a message:</p>
  <p><strong>OSError: core1 in use</strong></p>
  <p>Is there way to kill this second core process in advance and elimiate this message?
  The only way to stop it is to entirely shutdown/depower chip. But, in this case, all info is lost and I do not know what had happen, what had caused the error.</p>