fix bug clearing stale connections

Change-Id: I36193d04861f0953d51a438741d500cb3f0c16aa
Reviewed-on: https://gerrit.instructure.com/30404
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: James Williams  <jamesw@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>