# File lib/imagefactory/console.rb, line 208
  def shutdown
    @logger.debug "Closing connections.."
    if @session
      @session.close
    end
    @connection.close

    #TODO Replace this with some control flow to manage the cancelling of the console handler, atm
    #     this code swallows error message generated by closing connection, then cancelling console.
    begin
      self.cancel
    rescue QmfError
      # TODO We should be logging to a file rather than STDOUT, uncomment this code when logging is configured properly
      # Commented out to clean up user output
      #@logger.error "Issue Closing Console Handler"
    end
  end