Prevent early exit after an error

Use the provided timeout to give the runtime longer before quitting after an error.