     //--------------------------------------------------------------------------
 
     /**
-     * @private
-     */
-    private var resourceManager:IResourceManager =
-                                    ResourceManager.getInstance();
+     *  @private
+     */
+    private var handled:Boolean;
+
+    /**
+     *  @private
+     */
+    private var resourceManager:IResourceManager = ResourceManager.getInstance();
 
     //--------------------------------------------------------------------------
     //

     */
    override protected function resultHandler(msg:IMessage):void
    {
        disconnect();
        if (msg is AsyncMessage)
        {

     */
    protected function channelFaultHandler(event:ChannelFaultEvent):void
    {
        if (handled)
            return;
            
        disconnect();
        var errorMsg:ErrorMessage = event.createErrorMessage();
        errorMsg.correlationId = message.messageId;
