Simple retry utility for console scripts.