Incorrect close() arguments fix

Incorrect arguments (FILE*) to close() system call.