--[[**
	<description>
	Add a function to be called before the game closes. Fired with the player and value of the data store.
	</description>

	<parameter name = "callback">
	The callback function.
	</parameter>
**--]]

function DataStore:BindToClose(callback)
	table.insert(self.bindToClose, callback)
end
