fixing bug causing gevent arbiter to not properly close socket