Implemented a real idle timeout.