Set the keep_running flag to True only after we got a hold of connection