Errors should be logged too