Handle errors.

In case of error, log a warning and suppress standard output.