you don't have to register the 'close' listener at all (if there is no callback).