log close events