Fixes #366 by calling vacuum on delete_all_outputs()