Stop each capture device individually

This fixes a crash on exit that prevents display of statistics.