Replace panic with log message.
Rework idle connection management. Introduce IdleCheckFrequency option.