fix app hanging after exit during capturing