Changed redis disconnect sleep to avoid errors