Setup closure after adding tracks to model, so we don't accidentally clear/append twice.