Update connection_monitor.py