finish pushing of images before terminating