trying to close a file