WildMidi_Shutdown: set first_handle to NULL after all handles are freed.