log when closing port