Better logging when ports are closed