add window close command.