Fixed the order of finish so that the delegate won't be triggered by internal completeRPCURL