remove exit(0), wait for dump complete