Added boolean to check if thread item is deleted. Fixes #41