Possible improvement: alert the user of the timeout and offer the option to continue or abort execution.