Make sure errors are also logged.