minor closing bug

Bug in closing code prevented clean room exit.