Added Close method