below is the code which is called by the gtk closing action -->
def on_main_window_destroy(object)
  begin
  $client.send(':exit')
  Thread.kill $client.response
  rescue
    puts 'exiting'
  end
  Thread.kill $receiving_message
  Gtk.main_quit()
  exit
endwhich results in this output.
app.rb:81:in `exit': exit
 from app.rb:81:in `on_main_window_destroy'
 from /home/user/.gem/ruby/2.4.0/gems/gobject-introspection-3.1.8/lib/gobject-introspection/loader.rb:110:in `invoke'
 from /home/user/.gem/ruby/2.4.0/gems/gobject-introspection-3.1.8/lib/gobject-introspection/loader.rb:110:in `block in define_singleton_method'
 from app.rb:97:in `<main>'
the program works fine .. and it doesn't create a mess for me .. but i want to know the reasons for these errors so that i can handle it.
 
    