Only shut down the current process when the memory limit is reached