Modified AJ_StartClient() to support asynchronous