Do not raise exception when trying to save a memory-based trace.
Minor cleanup.