Fix possible deadlock problems related to the asynchronous method invocations.