def fire_close_handler
      if @confirm_close_command
        comm = @confirm_close_command
        ret = comm.call(self, *@confirm_close_args) 
        return ret unless ret # only return if false returned
      end
      if @close_command
        @close_command.each_with_index do |comm, ix|
          comm.call(self, *@close_args[ix]) if comm
        end
      end
      @close_command = nil
      @close_args = nil
      return true
    end
def fire_close_handler
      if @confirm_close_command
        comm = @confirm_close_command
        ret = comm.call(self, *@confirm_close_args) 
        return ret unless ret # only return if false returned
      end
      if @close_command
        @close_command.each_with_index do |comm, ix|
          comm.call(self, *@close_args[ix]) if comm
        end
      end
      @close_command = nil
      @close_args = nil
      return true
    end
Called when window close is requested by user.
 Executes confirm_close block and if it succeeds then executes close commands
 called by util/app.rb