adding close on destroy to dataSource