recorder thread stop for linux