Tweak the leak task handling and resetConnection() handling for small performance gains in the *nominal* case.  Possibly slower in edge-cases (but who cares).