[cmd] show the result of executing the 'close' command when pressing the 'X' shortcut