fix weird preprocessor issue with close method name being rename _close