added a close file_descriptor after main