Add the close method of web notification api