Fix that server could exit before images were downloaded