close the file stream