Fixed issue in local mode where an OOME could cause a cascading set of additional OOMEs making the jvm unstable.