syncer: fixing bug where error handler wasn't being called properly