removed debug exits.
added return when downloaded all pieces.