Current will flow top down through the inductor and when the switch is opened it will want continue doing this. But it has nowhere to source the current it needs, so it will form a loop through D2 until its field potential (measured in V) has dropped to where it's no longer able to light up D2. (It's less than D2's forward voltage.) Current escaping to ground would violate KCL. It has to to come from somewhere.