Creating stale connection interval in better place