Fixed a bug where stratcon/noit connections were not being cleaned up correctly due to socket connections not being closed and reference counters not being decremented properly when calling the 'show' REST command