minor error on close