removing on error and oom condition