Close the socket before setting it to -1. This hopefully solves LM-95.
Close the socket before setting it to -1. This hopefully solves LM-95.

Added a socket_close_io_channel call that unrefs the IOChannel and closes the
file descriptor.

tyll/loudmouth,mhallendal/loudmouth,tuxad-loudmouth/loudmouth,mcabber/loudmouth,mhallendal/loudmouth,tuxad-loudmouth/loudmouth,tyll/loudmouth,mcabber/loudmouth