making sure the current thread is not null before calling ihipDestroyDevice Change-Id: Ib75e3f9ee1c4e0065986e3fed1065907220f4379
Change-Id: Ibd3388f0981672cd209d7370f8a28b2883abdea2