Fixed 'close' for warning