Improved open/close or broken connection logging