add command close action