Add mimidump collecting code when crash.