Add the "close" command.