server disconnect bug

client.end() sometimes wouldnt be called, piling up connections and pissing off Heroku; I think I fixed it