Fix samples for latest OF version

grabFrame replaced by update
destructor replaced by exit