Modified AJ_UnmarshalMsg() to support asynchronous