null check before destroying hmd