Print errors to stderr, return non-zero code on fail