Add logging of close message