closeCurrentWindow command added