Make sure to closing all file streams