Clen up command process