Delay shutdown until all data has been pushed part2