fix crash on -hmd exit
Merge pull request #332 from voxelinc/fix_hmd_crash

fix crash on -hmd exit