Unloads the wave from memory. This should be called when the wave is no longer needed to free up resources.