Improve on interval implementation for checking idle connection