Fixes #6730 : close() xml reader on fromFile() and fromString()

Fixes #6730
@Ocramius: I find this issue after reading XML file and remove this file.