Add idle timeout option to close idle connections.