Fix warning caused by a missing close() call.