Close method