desktop.media.flv_merge: fix exit/cleanup sequence