Protect the memory usage call from a terminated sandbox