emptying thread content should come before content call in case the call finished first