Log errors to stdout

Fixes #4