fix leaking socket desc while try to reconnect to a controller
Merge into master from pull request #143:
fix leaking socket desc while try to reconnect to a controller (https://github.com/floodlight/indigo/pull/143)