Update closing code