add quit timeout