Cleanup mcthreadobject