Fix When an OOM is thrown,the executor does not stop properly.