Handles the timeout case.