add cdm of commit 6fb6887012ed71d379cb6858824845a58363dca7 from official source Mar 19,2013
fix fs.close() issue