The callback _saveFileCallback has to be set to nullptr to release se::Value the std::function captures.