fix #620 cleanup minidump file

cleanup the minidump file on success and fail.