std::raii_thread can now be closed from itself