added latency calculator via Round-trip delay time, close connection, and timeout notifier upon latency calculation for disconnections