[pymorse] Check if asyncore_thread is still alive

If we call close more than once, the thread is already dead, so just do
nothing in this case.
Fix #557