log close connection