Implement the "-w <timeout>" command line option.