Fixed thread initilization
Thread as daemon restored