Is bookmark search you had end regardless of errors, here you do only in successful search. You should stick to one option or another. Not sure which option makes more sense, but I'm leaning towards emitting end in both cases since then users can listen just for end event.