Added method close()