The creation and destruction of vortices in unsteady flows