Add some comments; make close() error fatal