Use shutdown task in BasicEA