Fixed bogus error log after running sync function.

Caused by Go's stupid behavior with nil interfaces (assigning a nil
pointer to an interface variable makes that variable non-nil.)
Also took out some unnecessary redundant logging.
(Fixes #33)