cancel running cmd when the console is reopened