added joinable condition on destructor