fixed crash on exit application when no rift was connected