file.close in auth