You can still print to stderr, and why not use a (non-zero) error code if an error has occurred?