Add close() method