Reject promise if not in sync.

Still untested.

Closes #163.