Because the gates of the town were shut, he withdrew, intending to come back later and wipe out the entire population of Joppa.