This sample demontrates how to close a window from attached URL.