Make sure that idle_timeout doesnt become negative