Fix Async deadlocks in web apps