Incorrect close() arguments fix