close() fix part2