Prevent the case when the timeout time out while code is being executed which will clear the timeout