Fixed a bug: now dumpProcess will correctly delete the log