fix: Prevent multiple connects from resulting in conflicting calls to remote.push

closes #294

* * *

This commit was sponsored by The Hoodie Firm.
You can hire The Hoodie Firm:

http://go.hood.ie/thehoodiefirm