Add dependencies on destroy