Do not swallow sync errors from commands event handlers, fixes #849.