Fixed a couple issues with capture_done and dump_fin