Stoped all threads before dump and resumed them afterwards.