Added CloseCommand class