[FIX] application does not quit after last file